<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 用text-align: center;可以使行内块元素居中对齐 -->
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            /* overflow: hidden; */
            text-align: center;
            /* white-space: nowrap;
            text-overflow: ellipsis; */
        }

        .box a {
            display: inline-block;
            width: 36px;
            height: 36px;
            line-height: 36px;
            text-align: center;
            background-color: #f5f2f2;
            text-decoration: none;
            color: #515050;
            border: 1px solid #2c2a2a;

        }

        .box .lt {
            width: 85px;
        }

        .box .gt {
            width: 85px;
        }

        .box .elp,
        .box .current {
            background-color: #fff;
            border: none;
        }

        .box input {
            height: 36px;
            width: 45px;
            border: 1px solid #ccc;
            outline: none;
        }
    </style>

</head>

<body>
    <div class="box">
        <a href="#" class="lt"> &lt;&lt;上一页</a>

        <a href="#" class="current">2</a>
        <a href="#">3</a>
        <a href="#">4</a>
        <a href="#">5</a>
        <a href="#">6</a>
        <a href="#" class="elp">...</a>
        <a href="#" class="gt">下一页&gt;&gt;</a>
        共10页 到第 <input type="text">页<a href="#">确定</a>
    </div>
</body>

</html>